package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 班级学期DTO
 *
 * @author: yangyongchuan
 * @create: 2020年08月25日 23:20
 */
@ApiModel("班级学期DTO")
@Data
public class ClassSemesterDTO implements BaseDTO {

	private static final long serialVersionUID = -2358862537345607447L;

	/**
	 * 学期ID
	 */
	@ApiModelProperty(value = "学期ID")
	private Integer semesterId;

	/**
	 * 类型 1实习课程 2技能培训
	 */
	@ApiModelProperty(value = "类型 1实习课程 2技能培训")
	@NotNull(message = "学期类型不能为空", groups = {Edit.class})
	private Integer semesterType;

	/**
	 * 学期名称
	 */
	@ApiModelProperty(value = "学期名称")
	@NotNull(message = "学期名称不能为空", groups = {Edit.class})
	@NotEmpty(message = "学期名称不能为空", groups = {Edit.class})
	private String semesterName;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	@NotNull(message = "排序不能为空", groups = {Edit.class})
	private Integer sortOrder = 0;

	/**
	 * 课堂教学课程集合
	 */
	@ApiModelProperty(value = "课堂教学课程集合")
	List<ClassSemesterSubjectDTO> classroomSubjectList;

	/**
	 * 线上课程集合
	 */
	@ApiModelProperty(value = "线上课程集合")
	List<ClassSemesterSubjectDTO> onlineSubjectList;

}
